const http = require('http')
const server = http.createServer((req, resp) => {
    resp.setHeader('Content-Type', 'text/html;charset=utf-8')
    resp.end(`请求地址${req.url}, 请求方式${req.method}`)
})
server.listen(80)
